* {
    margin:0;
    padding:0;
    box-sizing: border-box;
}
html{
    height:100%;
}
body{
    height:100%;
    display: flex;
    flex-direction: column;
}
.draggable {
    position:relative;
}
.draggable .drag {
    position:absolute;
    right:-8px;
    top:-8px;
    font-size:.6rem;
    opacity: 0.3;
}
.draggable .drag:hover {
    opacity: 1;
}
.edit-box {
    margin:12px 64px;
}
#editor .drag {
    opacity: 0;
}
#editor .drag:hover {
    opacity: 0.6;
}
.scriptbox{
    width:500px;
    height:100%;
}
#scriptedit{
    width:500px;
    height:100%;
}
.header{
    height:64px;
    width: 100%;
    background-color:#F3F3F3;
    padding:8px;
    box-shadow: 8px 0 10px #AAA;
    box-sizing: border-box;
}
.CodeMirror{
    height:100% !important;
}
main{
    flex:1;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;

}
main>aside{
    width:240px;
    background: #ececec;
}
main>.main-content{
    flex:1;
}
#preview-box{
    width:400px;
    height:690px;
    border-radius: 11px;
    padding:11px 0;
    position:absolute;
    margin:auto;
    left:0;
    right:0;
    top:0;
    bottom:0;
    display: none;
    text-align:center;
    z-index:996;
    box-shadow: 0 0 12px #444;
    background:#CECECE;
}
#preview-box .close-btn {
    position:absolute;
    right:-16px;
    height:32px;
    width:32px;
    background:#9e9e9e;
    color:#FFF;
    display: inline-block;
    top:-26px;
    line-height: 32px;
    border-radius: 32px;
    border:solid 3px #FFF;
}
#preview-box .close-btn:hover {
    background:#ececec;

}
.edit-box {
    display: inline-block;
    box-sizing: border-box;
    padding:24px;
    border-radius: 8px;
    background: #EAEAEA;
}
.filelist {
    width:320px;

}
#editor{
    width:375px;
    height:667px;
    overflow: scroll;
    background: #F3F3F3;

}
aside .preview {
    display: block;
    cursor: pointer;
}
aside .preview p{
    font-size:.5rem;
}
aside .view {
    display: none;
}

#editor .preview {
    display: none;
}
#editor .view {
    display: block;
}
#editor .ctrl {
    display: inline-block;
}
#editor .item.selected {
    border:solid 2px #ff2600;
}
#popmenu {
    display: none;
}
#popmenu .title{
    position:relative;
    background:#c3c3c3;
    padding:2px;
    font-size:0.8rem;
}
#popmenu .title .close {
    position:absolute;
    cursor: pointer;
    display: inline-block;
    width:32px;
    height: 32px;
    border-radius:32px;
    top:-16px;
    right:-16px;
    border:solid 3px #FFF;
    background:#aaa;
    color:#FFF;
    line-height: 32px;
    text-align: center;
}
#popmenu .title .close {
    background: #999;
}

#popmenu.pop{
    max-width:360px;
    display: inline-block;
    position:absolute;
    z-index: 199;
    border: solid 1px #CECECE;
    background: #FFF;
}

aside {
    display: flex;
    flex-direction: column;
}
.tab-bar {
    display: flex;
    width:100%;
    background: #EAEAEA;
    color:#777;
    border-bottom:solid 1px #DADADA;
    max-height:45px;
}
.tab-bar .tab-bar-item{
    flex:1;
    box-sizing: border-box;
    font-size:.6rem;
    padding:8px 0;
    text-align: center;
}
.tab-bar .tab-bar-item.active{
    background: #FFF;
    color:#ff2600;
}
.tab-content {
    flex: 1;
    overflow-y: scroll;
}
.tab-content-item {
    display: none;
    height: 100%;
}
.tab-content-item.active {
    display: block;
}
.tab-content .tab-content-item table {
    width:100%;
}
.tab-content .tab-content-item td {
    padding:12px;
    text-align:center;
    border-bottom: solid 1px #CECECE;
    color:#777;
}
.form-item {
    display: flex;
    padding:4px;
    box-sizing: border-box;
}
.form-item label {
    width: 64px;
    text-align: right;
    font-size:.6rem;
    color:#777;
}
.form-item .form-item-input{
    flex: 1;
    padding-left:4px;

}
.form-item .form-item-input input,
.form-item .form-item-input select{
    font-size:.6rem;
    color:#777;
    height:auto;
    background: #EAEAEA;
}
.form-item .checkbox input[type=radio],.form-item .checkbox input[type=checkbox] {
    width: 0;
    height:0;
}
.form-item label.input-icon {
    width: auto;
}
input[type=radio]:checked + label.input-icon, input[type=checkbox]:checked + label.input-icon{
    color:#FF6347;
}
.form-item .checkbox {
    width: 32px;
    height:32px;
    display: inline-block;
}

.row {
    display: flex;
}
.col5{
    display: inline-block;
    box-sizing: border-box;
    flex:1;
}
.col5 input{
    display: inline;
}
.form-item .span{
    font-size:.8rem;
    color:#999;
}
.option-icon{
    display: inline-block;
    width:80px;
    text-align:center;
    font-size:.6rem !important;
    color:#999;
}

.logo {
    display: inline-block;
    width:240px;
    float:left;
    margin-left:24px;
    margin-top:-8px;
}
.logo .brand{
    font-family:STLiti;
    font-size:1.1em;
    color:#9f4324;
}
.logo .desc {
    display: inline-block;
    font-family: STXingkai;
    color: #777;
    /* transform: skew(8deg); */
    font-size:.6rem;
    transform: skew(2deg) rotate(-3deg);
    margin-top:-8px;
}
.column{
    min-height:24px;
    border:solid 1px #f00;
}
.view:after{
    content:' ';
    display: block;
    height:0;
    clear: both;
    width:0px;
}
.view{
    zoom:1;
}
.has {
    position:relative;
}
.has:hover ul{
    display: inline-block;
}
.has ul{
    display: none;
    text-decoration: none;
    position:absolute;
    z-index:996;
    left:0;
    top:45px;
    width:120px;
    border:solid 1px #CECECE;

    box-shadow: 0 0 12px #777;
}

.has ul li{
    list-style: none;
    cursor: pointer;
    background: #FFF;
}
.has ul li:hover {
    background:#777;
    color:#FFF;
}

.right-box {
    width:500px;
    height:100%;
    display: flex;
    flex-direction: column;
}
.op {
    background: #ECECEC;
    padding:0px 12px
}
.filelist li{
    padding:8px 24px;
}
.filelist li:hover{
    background:#FFF;
}
.filelist li.active{
    background: #FFF;
}
